<html>
<head><meta charset="utf-8"><title>Errors that detect old `asm!` in the parser? · project-inline-asm · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/index.html">project-inline-asm</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/topic/Errors.20that.20detect.20old.20.60asm!.60.20in.20the.20parser.3F.html">Errors that detect old `asm!` in the parser?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="186207963"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/216763-project-inline-asm/topic/Errors%20that%20detect%20old%20%60asm%21%60%20in%20the%20parser%3F/near/186207963" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/topic/Errors.20that.20detect.20old.20.60asm!.60.20in.20the.20parser.3F.html#186207963">(Jan 21 2020 at 17:47)</a>:</h4>
<p>Could we, in the parser for the new <code>asm!</code>, detect an invocation that includes a <code>:</code> immediately after the string, and give an error message that guides people to <code>llvm_asm!</code> (and to converting to the new <code>asm!</code>)?</p>



<a name="186208074"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/216763-project-inline-asm/topic/Errors%20that%20detect%20old%20%60asm%21%60%20in%20the%20parser%3F/near/186208074" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/topic/Errors.20that.20detect.20old.20.60asm!.60.20in.20the.20parser.3F.html#186208074">(Jan 21 2020 at 17:48)</a>:</h4>
<p>The parser should have no trouble noticing the <code>:</code>, and that would make for much more friendly and helpful error messages.</p>



<a name="186225803"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/216763-project-inline-asm/topic/Errors%20that%20detect%20old%20%60asm%21%60%20in%20the%20parser%3F/near/186225803" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Amanieu <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/topic/Errors.20that.20detect.20old.20.60asm!.60.20in.20the.20parser.3F.html#186225803">(Jan 21 2020 at 20:51)</a>:</h4>
<p>Sure! I think that should be pretty easy to do.</p>



<a name="186313579"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/216763-project-inline-asm/topic/Errors%20that%20detect%20old%20%60asm%21%60%20in%20the%20parser%3F/near/186313579" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/topic/Errors.20that.20detect.20old.20.60asm!.60.20in.20the.20parser.3F.html#186313579">(Jan 22 2020 at 18:12)</a>:</h4>
<p>Thanks! I think that would really help in the transition, and I appreciate you being receptive to it.</p>



<a name="186313876"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/216763-project-inline-asm/topic/Errors%20that%20detect%20old%20%60asm%21%60%20in%20the%20parser%3F/near/186313876" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Amanieu <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/topic/Errors.20that.20detect.20old.20.60asm!.60.20in.20the.20parser.3F.html#186313876">(Jan 22 2020 at 18:15)</a>:</h4>
<p>In fact I'm writing the parser right now.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>